package com.rzl.expense.expense.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzl.expense.common.annotation.Excel;
import com.rzl.expense.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房租合同报账点关系对象 rent_billaccountcontract
 * 
 * @author expense
 * @date 2025-01-13
 */
public class RentBillaccountcontract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报账点关联合同关系Id */
    private String billaccountcontractId;

    /** 报账点Id */
    @Excel(name = "报账点Id")
    private String billaccountId;

    /** 房租合同Id */
    @Excel(name = "房租合同Id")
    private String rentcontractId;

    /** 关联状态 */
    @Excel(name = "关联状态")
    private Long relationState;

    /** 关联期始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "关联期始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date relationStartdate;

    /** 关联期终 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "关联期终", width = 30, dateFormat = "yyyy-MM-dd")
    private Date relationEnddate;

    public void setBillaccountcontractId(String billaccountcontractId) 
    {
        this.billaccountcontractId = billaccountcontractId;
    }

    public String getBillaccountcontractId() 
    {
        return billaccountcontractId;
    }
    public void setBillaccountId(String billaccountId) 
    {
        this.billaccountId = billaccountId;
    }

    public String getBillaccountId() 
    {
        return billaccountId;
    }
    public void setRentcontractId(String rentcontractId) 
    {
        this.rentcontractId = rentcontractId;
    }

    public String getRentcontractId() 
    {
        return rentcontractId;
    }
    public void setRelationState(Long relationState) 
    {
        this.relationState = relationState;
    }

    public Long getRelationState() 
    {
        return relationState;
    }
    public void setRelationStartdate(Date relationStartdate) 
    {
        this.relationStartdate = relationStartdate;
    }

    public Date getRelationStartdate() 
    {
        return relationStartdate;
    }
    public void setRelationEnddate(Date relationEnddate) 
    {
        this.relationEnddate = relationEnddate;
    }

    public Date getRelationEnddate() 
    {
        return relationEnddate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("billaccountcontractId", getBillaccountcontractId())
            .append("billaccountId", getBillaccountId())
            .append("rentcontractId", getRentcontractId())
            .append("relationState", getRelationState())
            .append("relationStartdate", getRelationStartdate())
            .append("relationEnddate", getRelationEnddate())
            .toString();
    }
}
